package com.huajx.armp.htxny.handler;

import com.huajx.core.message.RequestMessage;
import com.huajx.core.message.ResponseMessage;
import com.huajx.util.HexUtil;
import com.huajx.util.map.MapUtil;

import java.util.Map;

/**
 * @program: di-parent
 * @description: 实时数据上报 0x02
 * @author: lisa 叶新华
 * @create: 2020-03-26 09:34
 */
public class DataReportHandler extends AbstractHtxnyHandler {
    private final static String controlerKey = "/api/car/monitor";

    @Override
    public ResponseMessage handler(RequestMessage request) {
        byte[] bytes = (byte[]) request.getMessage();
        printMessage(bytes);

//        System.out.println("时间：" + parseDate(bytes, 24));

//        List<CarData> list = CarRealtimeDataDecoder.parse(bytes);



        // 响应数据
        render(request.getSession(), bytes);
        return null;
    }
}
